@{
    var typeDisplayName = Model.ContentItem.TypeDefinition.DisplayName;
    var pageTitle = T("Edit Content");
    if (!string.IsNullOrWhiteSpace(typeDisplayName)) {
        pageTitle = T("Edit {0}", typeDisplayName);
    }

    Layout.Title = pageTitle;
}

@using (Html.BeginFormAntiForgeryPost()) {
    @Html.ValidationSummary()
    // Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type
    @Display(Model)
}